package com.liliudong.template.common.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.liliudong.template.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户部门
 *
 * @author ldli5
 * @date 2024/06/18
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "sys_dept")
public class SysDept extends BaseEntity {
    /**
     * 部门编号
     */
    @TableField(value = "dept_no")
    private String deptNo;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 上级ID
     */
    @TableField(value = "parent_id")
    private Long parentId;
}